<form class="layui-form" action="" method="post" name="myform" id="myform">
	<input name="action" id="action" type="hidden" value="" />
	<div class="manniucms-sub-content">
		<div class="layui-box">
			<fieldset class="layui-elem-field layui-field-title">
			<legend><span class="color_read">【{$book.name}】</span> - 章节列表</legend>
				<div class="layui-field-box">
					<table class="layui-table">
						<colgroup>
							<col width="60">
							<col width="100">
							<col width="100">
							<col width="350">
							<col width="100">
							<col width="100">
							<col width="100">
							<col width="100">
							<col width="100">
							<col width="200">
							<col>
						</colgroup>
						<thead>
							<tr>
								<th class="th-text-center"><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
								<th class="th-text-center">排序</th>
								<th class="th-text-center">章节ID</th>
								<th>章节名称</th>
								<th class="th-text-center">分卷类别</th>
								<th class="th-text-center">章节字数</th>
								<th class="th-text-center">收费价格</th>
								<th class="th-text-center">是否收费</th>
								<th class="th-text-center">状态</th>
								<th class="th-text-center">上传日期</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{volist name="list" id="vo"}
							<tr>
								<td class="text-center"><input type="checkbox" name="ids[]" lay-skin="primary" value="{$vo.id}"></td>
								<td class="text-center"><input type="text" name="data[{$vo.id}][displayorder]" autocomplete="off" class="layui-input displayorder" value="{$vo.displayorder}"></td>
								<td class="text-center">{$vo.id}</td>
								<td>{$vo.chapter_name}</td>
								<td class="text-center">{if !isset($book['volumes'][$vo.volume]) || empty($book['volumes'])}-{else}{$book['volumes'][$vo.volume]}{/if}</td>
								<td class="text-center">{$vo.words}</td>
								<td class="text-center">{$vo.price}</td>
								<td class="text-center">
									<i class="fa {if $vo.charge}fa-check-circle color_primary{else}fa-times-circle color_danger{/if}" style="font-size:18px;"></i>
								</td>
								<td class="text-center">
									<i class="fa {if $vo.status}fa-check-circle color_primary{else}fa-times-circle color_danger{/if}" style="font-size:18px;"></i>
								</td>
								<td class="text-center">{$vo.create_time}</td>
								<td>
									<div class="layui-btn-group">
										<a class="layui-btn layui-btn-small layui-btn-primary" href="{:url('edit',['id'=>$vo.id,'book_id'=>$book.id])}">
											<i class="layui-icon">&#xe642;</i> 修改
										</a>
										<a class="layui-btn layui-btn-small layui-btn-primary" href="javascript:;" onclick="mn_confirm_url('确定删除 {$vo.chapter_name} 菜单吗？','{:url('del',['id'=>$vo.id,'book_id'=>$book.id])}')">
											<i class="layui-icon">&#xe640;</i> 删除
										</a>
									</div>
								</td>
							</tr>
							{/volist}
						</tbody>
					</table>
				</div>
			</fieldset>
		</div>
	</div>
	<!-- 底部 -->
	<div class="manniucms-sub-footer layui-box">
		<div class="msf-box clearfix">
			<div class="layui-inline msf-box-sub1">
				<input type="checkbox" lay-skin="primary" lay-filter="allChoose">
			</div>
			<!--
			<div class="layui-inline">
				<a class="layui-btn layui-btn-small layui-btn" onclick="mn_confirm_set_all('确定排序已选中的章节吗？','order')"><i class="layui-icon">&#xe60a;</i> 排序</a>
			</div>
			-->
			<div class="layui-inline">
				<a class="layui-btn layui-btn-small layui-btn-danger" onclick="mn_confirm_set_all('确定删除已选中的章节吗？','del')"><i class="layui-icon">&#xe640;</i> 删除</a>
			</div>
			<div class="pull-right">
            	{$list->render()}
            </div>
		</div>
	</div>
</form>